<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>MainPurchasenote</title>
    <%@include file="../header.html" %>
        
</head>
<%String side_bar_page = basePath+"side_bar.jsp"; %>
<body >

    <div >
		<jsp:include page="../side_bar.jsp" flush="true"/> 
		<jsp:include page="../top_bar.jsp" flush="true"/> 

        </div>
        
<section class="content" style="width:87%; float:right; margin:15px;">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<div class="box-header">
					<h3 class="box-title">资产移交确认</h3>
				</div>
				<!-- /.box-header -->
				<div class="box-body">
					<div id="example2_wrapper"
						class="dataTables_wrapper form-inline dt-bootstrap">
						<div class="row">
							<div class="col-sm-6"></div>
							<div class="col-sm-6"></div>
						</div>
						<div class="row">
							<div class="col-sm-12">
  <form action="my_assettransfer_queryAssetdetail_success_assetTransferconfirm.action" method="post">  
        <table align="center">  
            <tr>  
                <td> 
                    <input type="submit" value="移交确认" style="width: 100px;height: 30px;font-size: 16px"/>  
 				</td>
            </tr>  
        </table>  
        </br>
    </form>  
    <table id="t_assettrransfer" 
    
    class="table table-bordered table-hover dataTable" role="grid"
									aria-describedby="example2_info" align="center" border="1"
									cellpadding="0" cellspacing="0" bordercolor="#3366cc">
		<thead>    
        <tr align="center" bgcolor="#3399cc" height="26px">  
        	<td width="100">移交单号</td>  
            <td width="140">移交人</td>  
            <td width="160">移交日期</td>  
           
            <td width="120">接收人</td>  
            <td width="140">移交完成日期</td>  
            <td width="160">移交类型</td>  
           
            <td width="80">状态</td> 
             <td width="120">操作</td>  
        </tr> 
       </thead>
       <c:forEach var="assettransfer" items="${assettransfers }">  
            <tr align="center"  height="24px">  
            	<td width="100">${assettransfer.assettransferid}</td>  
            
                <td width="140">${assettransfer.senduserid.username}</td>
                 
                 <td width="160">${assettransfer.transferstarttime}</td>  
                 
                 <td width="120">${assettransfer.acceptuserid.username}</td>  
                 
                 <td width="140">${assettransfer.transferfinishtime}</td>  
                 
                 <td width="160">
                 	<c:if test="${assettransfer.transfercatalog==0}">离职移交</c:if> 
		                  <c:if test="${assettransfer.transfercatalog==1}">调职移交</c:if> 
                 
                 </td>  
                 
                 <td width="80">
		                <c:if test="${assettransfer.status==0}">待移交</c:if> 
		                  <c:if test="${assettransfer.status==1}">移交待确认</c:if>
		                  <c:if test="${assettransfer.status==2}">移交完成</c:if> 
                  </td>   
                  
                   <td width="160"> 
                    <a href="my_assettransfer_queryAssetdetail_success_assetTransferconfirm.action">详细信息</a>
                	<c:if test="${assettransfer.status==1}"><a href="my_assettransfer_ChangeAndMarkk_success_assetTransferconfirm.action?assettransferid=${assettransfer.assettransferid}&userid=${session.userid}">移交审核</a></c:if> 
                </td> 
            </tr>  
        </c:forEach> 
    </table>  
    
     <!-- 分页 -->
  <center>
    <div > 
        共有 <span id="spanTotalInfor"></span> 条记录     
        当前第<span id="spanPageNum"></span>页     
        共<span id="spanTotalPage"></span>页
    </div>
    <div >   
            <span id="spanFirst" >FIRST</span> 
            <span id="spanPre">UP</span>
            <span id="spanInput" style="margin: 0px; padding: 0px 0px 4px 0px; height:100%; "> 
                第<input id="Text1" type="text" class="TextBox" onkeyup="changepage()"   style="height:20px; text-align: center;width:50px" />页 
            </span>
            <span id="spanNext">DOWN</span> 
            <span  id="spanLast">LAST</span> 
        </div>
</center>
    <script type="text/javascript">
            var theTable = document.getElementById("t_assettrransfer");
            var txtValue = document.getElementById("Text1").value;
            function changepage() {
                var txtValue2 = document.getElementById("Text1").value;
                if (txtValue != txtValue2) {
                    if (txtValue2 > pageCount()) {

                    }
                    else if (txtValue2 <= 0) {

                    }
                    else if (txtValue2 == 1) {
                        first();
                    }
                    else if (txtValue2 == pageCount()) {
                        last();
                    }
                    else {
                        hideTable();
                        page = txtValue2;
                        pageNum2.value = page;

                        currentRow = pageSize * page;
                        maxRow = currentRow - pageSize;
                        if (currentRow > numberRowsInTable) currentRow = numberRowsInTable;
                        for (var i = maxRow; i < currentRow; i++) {
                            theTable.rows[i].style.display = '';
                        }
                        if (maxRow == 0) { preText(); firstText(); }
                        showPage();
                        nextLink();
                        lastLink();
                        preLink();
                        firstLink();
                   }

                    txtValue = txtValue2;
                }
            }
            
    </script>
    <script type="text/javascript" src="./js/Pagging.js"></script>
        <!-- 分页 -->
      <%@include file="../footer.html" %>









  </body>
</html>
